package com.moto.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.moto.entity.PostsFriend;

/**
 * 组队贴Repository
 * @author lixunhui
 *
 */
@Repository("postsFriendRepository")
public interface PostsFriendRepository {

	List<PostsFriend> getAll();

	PostsFriend selectByPostsId(String postsId);
	
	int deleteByPrimaryKey(String pId);

    int insert(PostsFriend friend);

    int insertSelective(PostsFriend friend);

    PostsFriend selectByPrimaryKey(String pId);

    int updateByPrimaryKeySelective(PostsFriend record);

    int updateByPrimaryKey(PostsFriend record);

	PostsFriend getPostsByPostsId(String postsId);
	
	int deleteByPostsId(String postsId);
}
